package work.xiaohong.mina.test2.message;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author Kevin
 * @data 4/23/2022 7:32 PM
 * @description Move Carrier Confirmed 消息
 **/

@Data
@ToString
public class CoMessage extends PlcMessageHead implements Serializable {

  /**
   * Indicates the event that has occurred for the specific component.
   * The event type also indicates what kind of key/value pairs can be expect.
   */
  private String evt;

  /**
   * The unique identification of the conveyor system component on which the event occurred.
   */
  private String com;

  /**
   * The identification of the carrier, usually this would be the content of the scanned barcode.
   */
  private String car;

  /**
   * Direction code, containing the lane number where the Carrier was transfererred to.
   */
  private List<Integer> dir;

  /**
   * A ordered list of allowed direction codes that the PLC could use to send the carrier to.
   * Usually this list matches the directionCodeList from the previous move message.
   */
  private Integer sta;

  /**
   * A ordered list of allowed direction codes that the PLC could use to send the carrier to.
   * Usually this list matches the directionCodeList from the previous move message.
   */
  private List<Integer> dcl;

  /**
   * A ordered list of status codes Indicating if something unexpected happened for a direction that the PLC was allowed to use.
   * The index of the statusCode in the List matches the index of the directioncode in the previous field.
   * A direction which wasn't considered/evaluated by the PLC will get a value of '-1'.
   */
  private List<Integer> scl;



}
